/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.dao;

import java.util.List;
import thienphuc.patient.dto.PhongBan;
import thienphuc.patient.dto.Quyen;

/**
 *
 * @author QuocDat
 */
public interface QuyenDAO extends Dao<Quyen, Integer>  {
    public final static String QUYEN_MA_QUYEN = "maQuyen";
    public final static String QUYEN_TEN_QUYEN = "tenQuyen";
    public final static String QUYEN_MO_TA = "moTa";
    public final static String QUYEN_TRANG_THAI = "trangThai";
    public final static String QUYEN_PHONG_BAN = "phongBan";
    public final static String QUYEN_NHAN_VIENS = "nhanViens";
    
    /**
     * Find Quyen by TenQuyen
     * @param tenQuyen
     * @return 
     */
    List<Quyen> findByTenQuyen(String tenQuyen) throws Exception;
    
    /**
     * Find Quyen by TrangThai
     * @param trangThai
     * @return 
     */
    List<Quyen> findByTrangThai(boolean trangThai) throws Exception;
    
    /**
     * Find Quyen by PhongBan
     * @param phongBan
     * @return 
     */
    List<Quyen> findByPhongBan(PhongBan phongBan) throws Exception;
}